<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
    .fixed-img{
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${log.id}" type="hidden">
                        <input id="oldAttachId" name="oldAttachId" type="hidden" th:value="${log.imgPath}">
                        <input id="attachId" name="imgPath" type="hidden" th:value="${attachId}">
                        <input id="deptId" name="deptId" type="hidden" th:value="${log.deptId}">
                        <input id="itemId" name="itemId" type="hidden" th:value="${log.itemId}">
                        <!--<input id="htmlType" name="htmlType" type="hidden" th:value="detail">-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">检查项目：</label>
                            <div class="col-sm-8">
                                <input id="itemName" name="itemName" th:value="${log.itemName}" class="form-control"
                                       type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">班级：</label>
                            <div class="col-sm-8">
                                <input id="deptName" name="deptName" th:value="${log.deptName}" class="form-control"
                                       type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">扣分分数：</label>
                            <div class="col-sm-8">
                                <input id="score" name="score" th:value="${log.score}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">扣分说明：</label>
                            <div class="col-sm-8">
                                <input id="content" name="content" th:value="${log.content}" class="form-control"
                                       type="text" maxlength="200">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片：</label>
                            <div id="uploader" class="wu-example col-sm-8">
                                <div class="queueList">
                                    <div id="dndArea" class="placeholder">
                                        <div id="filePicker"></div>
                                        <p>或将照片拖到这里，单次最多可选10张</p>
                                    </div>
                                </div>
                                <div class="statusBar" style="display:none;">
                                    <div class="progress">
                                        <span class="text">0%</span>
                                        <span class="percentage"></span>
                                    </div>
                                    <div class="info"></div>
                                    <div class="btns">
                                        <div id="filePicker2"></div>
                                        <div class="uploadBtn">开始上传</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">审核状态：</label>
                            <div class="col-sm-8">
                                <input th:value="${log.status == '0' ? '未审核' : log.status == '1' ? '审核通过' : '审核不通过'}" class="form-control"
                                       type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">上报人：</label>
                            <div class="col-sm-8">
                                <input th:value="${log.createdName}" class="form-control"
                                       type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">上报时间：</label>
                            <div class="col-sm-8">
                                <input id="createdTime" name="createdTime" th:value="${#dates.format(log.createdTime,'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control" type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">审核时间：</label>
                            <div class="col-sm-8">
                                <input id="verifyTime" name="verifyTime" th:value="${#dates.format(log.verifyTime,'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control" type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button class="btn btn-primary" onclick="update()">修改</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<!----文件控件js--->
<script type="text/javascript" th:src="@{/js/plugins/webuploader/webuploader.js}"></script>
<script type="text/javascript" th:src="@{/js/plugins/webuploader/webuploader_demo.js}"></script>
<script type="text/javascript" src="/js/appjs/system/score/edit.js">
</script>
</body>
</html>
